package org.fujene.memoryblock.optimizer;

import org.fujene.constants.Constants;

public abstract class Optimizer{
	protected long termHashFrom, termHashTo;
	protected long contentHashFrom, contentHashTo;

	public void refreshHashRange(long from, long to, int type){
		if(type == Constants.TERM){
			this.termHashFrom = from;
			this.termHashTo = to;
		}else{
			this.contentHashFrom = from;
			this.contentHashTo = to;
		}
	}


	public abstract void optimize();
}
